package Generic;

import java.util.ArrayList;
import java.util.List;

/**
 * 泛型测试
 *
 * @Author henry hu
 * @Date 2021/1/27 14:17
 */
public class Generic {

    public static void main(String[] args) {
        List<String> arrayList = new ArrayList();
        arrayList.add("aaaa");
        arrayList.add("100");

        for (int i = 0; i < arrayList.size(); i++) {
            String item = (String) arrayList.get(i);
            System.out.println("泛型测试" + "item = " + item);
        }
    }
}
